Skip to content

Commit 9b57ebd

Browse files
authored
add DMS handling for cleanup of old account events (#6589)
1 parent 0db0b8b commit 9b57ebd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

kitsune/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,6 +1127,7 @@ def filter_exceptions(event, hint):
11271127
DMS_COHORT_ANALYSIS = config("DMS_COHORT_ANALYSIS", default=None)
11281128
DMS_UPDATE_L10N_CONTRIBUTOR_METRICS = config("DMS_UPDATE_L10N_CONTRIBUTOR_METRICS", default=None)
11291129
DMS_CLEANUP_EXPIRED_USERS = config("DMS_CLEANUP_EXPIRED_USERS", default=None)
1130+
DMS_CLEANUP_OLD_ACCOUNT_EVENTS = config("DMS_CLEANUP_OLD_ACCOUNT_EVENTS", default=None)
11301131

11311132
PROD_DETAILS_CACHE_NAME = "product-details"
11321133
PROD_DETAILS_STORAGE = config(

scripts/cron.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ def job_update_l10n_contributor_metrics():
396396
coalesce=True,
397397
skip=settings.READ_ONLY,
398398
)
399+
@babis.decorator(ping_after=settings.DMS_CLEANUP_OLD_ACCOUNT_EVENTS)
399400
def job_cleanup_old_account_events():
400401
call_command("cleanup_old_account_events")
401402

0 commit comments

Comments
 (0)